package com.jifeng.br.pjj.bookreader.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @Author PangJunjie
 * @Date 2023/7/19/019
 */
@Data
@TableName(value = "br_record", resultMap = "recordMap")
public class RecordEntity {
    /**
     * 主键自增
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;
    private Integer bookId;
    private Integer catalogId;
    private Date readTime;
    @TableField(exist = false)
    private BookEntity book;
}
